<template>
    <tr>
        <td>{{tItem.type}}</td>
        <td>{{tItem.account}}</td>
        <td><input type="text" v-model="dataTip" @input="change"></td>
        <td>
            <span @click="del">删除</span>
        </td>
    </tr>
</template>
<script>
export default {
    props:['tItem'],
    data(){
        return {
            dataTip:this.tItem.tip
        }
    },
    methods:{
        change(){
            this.$emit('change',this.dataTip,this.tItem.id)
        },
        del(){
            this.$emit('del',this.id);
        }
    }
}
</script>
